package edu.sctu.xuping.month05.day20150526;

import java.util.HashMap;

/**
 * Created by Administrator on 2015/5/26.
 */
public class HashMapClass {

    public HashMap<Integer, Student> setHashMap(int size) {
        HashMap<Integer, Student> map = new HashMap<Integer, Student>();
        for (int i = 1; i < size; i++) {
            Student student = new Student();
            student.age = 17 + i;
            student.name = "静兰" + i;
            student.sex = "女" + i;
            map.put(i, student);
        }
        return map;
    }
}
